package com.balabala.gym_goods.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author fsj
 * @date 2023/5/6 14:38
 */
@Data
public class ScheduleAddDto implements Serializable {


    @TableId(type= IdType.AUTO)
    private Long id;

    //课程id
    private Integer courseId;

    //教练id
    private Integer coachId;

    //上课日期
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    private LocalDateTime startDate;

    //开课时间
    @DateTimeFormat(pattern = "YYYY-MM-dd")
    private LocalDateTime startTime;

    //结束时间
    private LocalDateTime endTime;

    //单节课可预约人数
    private Integer classOrderNumber;


}
